package com.frog.rss.domain;

import java.io.Serializable;

public class RSSItem implements Serializable {
	public RSSItem(String title, String link, String pubDate,
			String description, String category, int starrted, int read) {
		super();
		this.title = title;
		this.link = link;
		this.pubDate = pubDate;
		this.description = description;
		this.category = category;
		this.starrted = starrted;
		this.read = read;
	}

	public static final int UNREAD_STATUS = 0;
	public static final int READ_STATUS = 1;
	public static final int UNSTARRED_STATUS = 0;
	public static final int STARRED_STATUS = 1;

	public static final String TITLE = "title";
	public static final String PUBDATE = "pubDate";
	public static final String DESCRIPTION = "description";
	public static final String LINK = "link";
	public static final String CATEGORY = "category";
	public static final String STARRTED = "starrted";
	public static final String READ = "read";

	private String title = null; // 新闻标题
	private String link = null; // 新闻链接
	private String pubDate = null; // 新闻发布时间
	private String description = null; // 新闻描述
	private String category = null; // 新闻类别
	private int starrted = 0;
	private int read = 0;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public String getPubDate() {
		return pubDate;
	}

	public void setPubDate(String pubDate) {
		this.pubDate = pubDate;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public int getStarrted() {
		return starrted;
	}

	public void setStarrted(int starrted) {
		this.starrted = starrted;
	}

	public int getRead() {
		return read;
	}

	public void setRead(int read) {
		this.read = read;
	}

	@Override
	public String toString() {
		return "title:" + title + " des:" + description;
	}
}
